package shop.up.all.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * TODO {@link PassportController}
 *
 * @author Kevin
 * @date 2022/7/22
 */
@Controller
public class PassportController {

    /**
     * 登录页面
     * @param request
     * @return
     */
    @GetMapping("login.html")
    public String login(HttpServletRequest request){
        String originUrl = request.getParameter("originUrl");
        request.setAttribute("originUrl",originUrl);
        return "login";
    }
}
